﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Visitor
{
    class Visitor2 : IVisitor
    {
        public void visit(ConcreteElement1 element)
        {
            Console.WriteLine("Visitor2 visits: ConcreteElement1");
        }

        public void visit(ConcreteElement2 element)
        {
            Console.WriteLine("Visitor2 visits: ConcreteElement2");
        }

        public void visit(ConcreteElementRoot client)
        {
            Console.WriteLine("Visitor2 visits: Client");
        }
    }
}
